<?php
/**
 * Klasse zur Erzeugung eines Modal-Footer
 *
 * @author		Joachim Ruf, Loresoft Software (http://www.loresoft.de)
 * @license		New BSD License
 * @version		Class for Bootstrap v2.3.2
 *
 * */


Class Bootstrap_Modal_Footer
{
	private $useButtonClose	= false;
	private $content		= '';


	/**
	 *
	 * */
	function __construct () {

	}


	public function useButtonClose ($_text = 'Close') {
		if ($this->useButtonClose === true) {
			return false;
		}

		return $this->content .= '<button class="btn" data-dismiss="modal" aria-hidden="true">'.$_text.'</button>';
	}

	public function addContent ($_content) {
		return $this->content .= $_content;
	}

	public function getContent () {
		return $this->content;
	}


}


?>